package com.xiangxiao.rpan.file.enums;

import com.fasterxml.jackson.annotation.JsonValue;
import lombok.Getter;

/**
 * @auther xiangxiao
 * @email 573768011@qq.com
 * @data 2023/11/29 15:13
 */
@Getter
public enum FileClickModeEnum {
  /**
   * 单击打开文件/文件夹
   */
  CLICK("click"),

  /**
   * 双击打开文件/文件夹
   */
  DBCLICK("dbclick");

  private String value;

  @JsonValue
  public String getFileClickModeEnum() {
    return this.value.toUpperCase();
  }

  FileClickModeEnum(String val) {
    this.value = val.toUpperCase();
  }
}
